Packages

c

com.fsf.news.client

NewsApiClient

class NewsApiClient extends JsonBodyReadables

Client for interacting with the News API.

Annotations
@Slf4j() @Singleton()
Linear Supertypes
JsonBodyReadables, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NewsApiClient
  2. JsonBodyReadables
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected
  3. Private

Instance Constructors

  1. new NewsApiClient(ws: WSClient, config: Config)
    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def invokeNewsApi(form: NewsSourcesForm): CompletionStage[JsonNode]

    Invokes the News API with the provided news sources form data.

    Invokes the News API with the provided news sources form data.

    form

    The news sources form data

    returns

    A CompletionStage containing the JSON response from the News API

  11. def invokeNewsApi(form: NewsForm): CompletionStage[JsonNode]

    Invokes the News API with the provided search form data.

    Invokes the News API with the provided search form data.

    form

    The search form data

    returns

    A CompletionStage containing the JSON response from the News API

  12. def invokeNewsApiEverything(searchTerms: String): CompletionStage[JsonNode]

    Invokes the News API everything endpoint with the provided search terms.

    Invokes the News API everything endpoint with the provided search terms.

    searchTerms

    The search terms

    returns

    A CompletionStage containing the JSON response from the News API

  13. def invokeNewsApiSources(): CompletionStage[JsonNode]

    Invokes the News API sources endpoint.

    Invokes the News API sources endpoint.

    returns

    A CompletionStage containing the JSON response from the News API

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def json(arg0: ObjectMapper): BodyReadable[JsonNode]
    Definition Classes
    JsonBodyReadables
  16. def json(): BodyReadable[JsonNode]
    Definition Classes
    JsonBodyReadables
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. def responseBodyAsJson(response: WSResponse): JsonNode
    Attributes
    private
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from JsonBodyReadables

Inherited from AnyRef

Inherited from Any

Ungrouped